<include file="Common/nav" current="findr"/>
<div class="container">
  <div class="mycontent" style="width:1152px;">
    <if condition="$data['status'] eq 'fail'">
    <div class="alert alert-danger fade in" style="width:60%; margin:0.8em auto;">
      <a class="close" data-dismiss="alert" href="#" aria-hidden="true">&times;</a>
      <h4>Some error occurs.</h4>
      <p>{$data['error']}</p>
    </div>
    <else/>
    <if condition="!$data['data']">
    <div class="alert alert-warning fade in" style="width:60%; margin:0.8em auto;">
      <a class="close" data-dismiss="alert" href="#" aria-hidden="true">&times;</a>
      <h4>Sorry that no matched result found.</h4>
      <p>You can get another try :D</p>
    </div>
    </if>
    </if>
    <div id="adv-results">
    <volist name="data.data" id="it">
    <div class="msry-item">
      <a href="{:U('movie/'.$it['id'])}" data-toggle="tooltip" title="<h5><em>{$it['title']}</em></h5>" data-content="{$it['genre']}</br>{$it['releasedate']}"><img <notempty name="it.poster">src="{$it['poster']}"<else/> data-src="holder.js/160x210" </notempty> alt="{$it['poster']}" /></a>
    </div>
    </volist>
    </div>
  </div>
</div>
<div id="page-nav">
  <a href="{:U('/findr_process').'?'.$data['query_str'].'&page=2'}"></a>
</div>
